package com.ruoyi.hyg.service;

import java.util.Date;
import java.util.List;
import com.ruoyi.hyg.domain.DailyPractice;

public interface IDailyPracticeService {
    DailyPractice selectDailyPracticeById(Long id);
    List<DailyPractice> selectDailyPracticeList(DailyPractice dailyPractice);
    int insertDailyPractice(DailyPractice dailyPractice);
    int updateDailyPractice(DailyPractice dailyPractice);
    int deleteDailyPracticeByIds(Long[] ids);
    int deleteDailyPracticeById(Long id);
    DailyPractice selectByUserAndDate(Long userId, Date practiceDate);
    List<DailyPractice> selectDailyRanking(Date practiceDate);
    List<DailyPractice> selectDailyRankingForDisplay(Date practiceDate);
    Integer getUserTotalPracticeDays(Long userId);
    Integer sumQuestionsByUser(Long userId);
    void processDailyRankingAndRewards(Date practiceDate);
}